import { RouteRecordRaw } from 'vue-router'
import { addParentBaseRoute } from '../utils'

/**
 * 一些公共路由 + 业务路由
 */
const commonRoutes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: () => import('@jsjn/micro-core-views/error/loading.vue')
    },
    {
        path: '/:path(.*)*',
        component: () => import('@jsjn/micro-core-views/error/404.vue')
    },
    {
        path: '/500',
        component: () => import('@jsjn/micro-core-views/error/500.vue')
    }
]

export default commonRoutes // addParentBaseRoute(commonRoutes)
